package com.usabb.pojo.vo;

import com.usabb.domain.MaternityBaseDO;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.beans.BeanUtils;


/**
 * 月子中心管理
 */

@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
public class MaternityBaseVO extends MaternityBaseDO {

    private Long[] promiseIds;
    private Long[] labelIds;


    public MaternityBaseDO toDo() {
        MaternityBaseDO baseDO = new MaternityBaseDO();
        BeanUtils.copyProperties(this, baseDO);

        return baseDO;
    }

}
